<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>提成报表</title>

<body class="withvernav">
<div class="bodywrapper">
{{include file='/public/leftmenu.tpl'}}
<div class="centercontent tables">
  <div class="pageheader notab">
    <h1 class="pagetitle">提成报表(按销售数量提成)</h1>
   
    <span class="pagedesc">提成计算方式：3个月单品累计毛利*20%;&nbsp;&nbsp;&nbsp;&nbsp;清算月份=入库月份+3 ;&nbsp;&nbsp;&nbsp;&nbsp;入库月份:商品第一次入库记录的时间点</span>
   
    
     </div>
  <!--pageheader-->
  
  <div class="page">{{$pageList}} 计{{$total}}条记录，共{{$totalpage}}页</div>
  <div id="contentwrapper" class="contentwrapper"> 
    <!--搜索栏-->
    <form class="stdform stdform2" method="get" action="/datareport/bonus">
      <div class="tableoptions"> 
       开发人员: <input type="text" name="uname" id="uname" class="width100" value="{{$uname}}" />
      清算日期：
        <input type="text"  name="starttime" value="{{$starttime}} " onClick="WdatePicker({dateFmt:'yyyy-MM-dd '})" class="width100 hasDatepicker" /> - <input type="text"  name="endtime" value="{{$endtime}} " onClick="WdatePicker({dateFmt:'yyyy-MM-dd '})" class="width100 hasDatepicker" />
        
         入库月起：
        <input type="text"  name="rkstartime" value="{{$rkstartime}} " onClick="WdatePicker({dateFmt:'yyyy-MM-dd '})" class="width100 hasDatepicker" /> - <input type="text"  name="rkendtime" value="{{$rkendtime}} " onClick="WdatePicker({dateFmt:'yyyy-MM-dd '})" class="width100 hasDatepicker" />
        
       关键词: <input type="text" name="other" id="other" class="width100" value="{{$other}}" placeholder="商品名或SKU" />
        提成发放月:
                      <input type="text"  name="ty" value="{{$ty}} " onClick="WdatePicker({dateFmt:'yyyy-MM '})" class="width100 hasDatepicker" />
                          
                           
        &nbsp;
        <button class="btn btn_orange btn_search radius50">Search</button>
       &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 合计提成金额	<font color=red>{{$allamount}}</font>
      </div>
    </form>
    <!--搜索栏结束-->
    
    <table cellpadding="0" cellspacing="0" border="0" class="stdtable">
      <colgroup>
      <col class="con1" />
      <col class="con0" />
      <col class="con1" />
      <col class="con0" />
      <col class="con1" />
      <col class="con0" />
      <col class="con1" />
      </colgroup>
      <thead>
        <tr>
          <th class="head0"><a href="/datareport/bonus?cr={{$cr}}">开发人员</a><span style="margin-top:15px;">&nbsp;&nbsp;<img src="/fuman/images/{{if $orderbysku=='DESC'}}arrowdown{{else}}arrowup{{/if}}.png"> </span></th>
          <th class="head1">入库日期 </th>
          <th class="head0">清算日期</th>
          <th class="head0"><a href="/datareport/bonus?orderbysku={{$orderbysku}}">商品编号</a><span style="margin-top:15px;">&nbsp;&nbsp;<img src="/fuman/images/{{if $orderbysku=='DESC'}}arrowdown{{else}}arrowup{{/if}}.png"> </span></th>
          <th class="head1">商品名称</th>
         
          
          <th class="head0">30天销量</th>
          <th class="head0">60天销量</th>
          <th class="head0">90天销量</th>
          <th class="head0">库存</th>
          <th class="head0">提成金额</th>
          <th class="head0">提成发放月</th>
          <th class="head0">滞销率/承担金额</th>
          <th class="head0">查看详细</th>
        </tr>
      </thead>
      <tbody>
      
      {{foreach from=$list item=li key=key}}
      <tr>
        <td>{{$li.createUser}}</td>
         <td class="center">{{$li.tbopertime}}</td>
        <td class="center">{{$li.liquidation}}</td>
        <td>{{$li.sku}} </td>
        <td>{{$li.name}}</td>
       
       
        <td class="center">{{$li.threedaysale}}</td>
        <td class="center">{{$li.daysale}}</td>
        <td class="center">{{$li.jiudaysale}}</td>
         <td class="center">{{$li.stocknum}}</td>
        <td class="center">{{$li.commissionamount}}</td>
      
        <td class="center">{{$li.qis}}</td>
          <td class="center">{{$li.zhixiaolv}}  / {{if $li.zhixiaoamount>0}} <font color="#FF0000">{{$li.zhixiaoamount}}</font>{{else}}{{$li.zhixiaoamount}}{{/if}}</td>
        <td>&nbsp;&nbsp;&nbsp;<a href="/datareport/orderlist?sku={{$li.sku}}" ><img src="/fuman/images/icons/attachment.png"></a></td>
      </tr>
      {{/foreach}}
        </tbody>
      
    </table>
    <div class="page">{{$pageList}}</div>
    <br />
    <br />
  </div>
</div>
<!--bodywrapper-->

</body>
</html>